package com.sl.springboot.dao;

import com.sl.springboot.model.Admin;
import com.sl.springboot.model.Coach;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * DAO层接口
 * @author: mty
 */
public interface CoachDao {

    //获取列表
    public List<Coach> getCoachList(Map mp);

    //获取总条数
    public Integer totalCount(Map mp);

    //添加
    public int addCoach(Coach coach);

    //删除
    public int deleteCoach(@Param("id") String id);

    //修改
    public int updateCoach(Coach coach);

    //根据ID查询
    public Coach findCoachById(@Param("id") String id);

    //查询所有
    public List<Coach> getAll();

    //按照条件查询
    public List<Coach> queryFilter(Map mp);

}
